package com.tmt.datatable.model;

import com.tmt.annotation.IFieldOption;

import java.io.Serializable;
import java.util.Map;

public class FieldOption<T> implements IFieldOption<T>, Serializable {

    private String label;
    private T value;
    private boolean disabled;
    private Map<String, Object> attr;

    private String disableControl;


    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public T getValue() {
        return value;
    }

    public void setValue(T value) {
        this.value = value;
    }

    public String getText() {
        return label;
    }

    public void setText(String text) {
        this.label = text;
    }

    public T getId() {
        return value;
    }

    public void setId(T id) {
        this.value = id;
    }

    public Map<String, Object> getAttr() {
        return attr;
    }

    public void setAttr(Map<String, Object> attr) {
        this.attr = attr;
    }

    public boolean isDisabled(){
        return disabled;
    }

    public void setDisabled(boolean disabled){
        this.disabled = disabled;
    }

    public void setDisableControl(String disableControl){
        this.disableControl = disableControl;
    }

    public String getDisableControl(){
        return disableControl;
    }
}